package com.boot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;

import tk.mybatis.mapper.common.Mapper;
import util.SpringBeanFactoryUtils;

@ServletComponentScan()
@tk.mybatis.spring.annotation.MapperScan(basePackages = "com.boot.web.dao", markerInterface = Mapper.class)
@SpringBootApplication
public class App {
	public static void main(String[] args) {
		ConfigurableApplicationContext context = SpringApplication.run(App.class, args);
		SpringBeanFactoryUtils.setApplicationContext(context);
	}
}
